﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
        <link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap.js"></script>
</head>
<body>
    <div class="container">
        <div class="alert alert-danger" role="alert">
            <h4 id="seconds"></h4>
        </div>
    </div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function () {
    var t = 5;
    var a = setInterval(daojishi, 1000); //1000毫秒
    function daojishi() {
        t--;
        //刷新时间显示
        $("#seconds").html("登录超时，请<a href='/WEB/Family/UsrLogin.aspx'>重新登录</a>，页面会在" + t + "秒自动跳转到登录页面！");
        if (t == 0) {
            clearInterval(a);
            window.location.href = '/WEB/Family/UsrLogin.aspx';
            //倒计时结束
        }
    }
})
</script>